home *** CD-ROM | disk | FTP | other *** search
/ Programmer Power Tools / Programmer Power Tools.iso / progjrn / pj_6_6.arc / 66L5.ASM < prev    next >
Assembly Source File  |  1988-08-17  |  315b  |  25 lines

  1. ;
  2. ; *** Listing 5 ***
  3. ;
  4. ; Solution to MASM 5.0 problem with local labels in REPT blocks.
  5. ; Brad Levy's solution (also offered by Michael Liebert).
  6. ;
  7.     dosseg
  8.     .model    small
  9.     .code
  10. mac1    macro
  11.     local    testlabel
  12.     jmp    testlabel
  13. testlabel:
  14.     endm
  15. mac2    macro
  16.     rept    10
  17.     mac1
  18.     endm
  19.     endm
  20.  
  21.     mac2
  22.  
  23.     end
  24.  
  25.